﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DelonixRegiaHMSys.Core.Interfaces;
using DelonixRegiaHMSys.Core.Models;

namespace DelonixRegiaHMSys.Core.Services
{
    public class reServices
    {
        private readonly IReportQuery _reportQuery;
        public reServices(IReportQuery reportQuery)
        {
            _reportQuery = reportQuery;
        }

        public IEnumerable<RoomStatusReport> GetAllRSR()
        {
            return _reportQuery.GetAllRSR();
        }

        public IEnumerable<RoomOccupancyReport> GetAllROR()
        {
            return _reportQuery.GetAllROR();
        }

        public void InsertRO(RoomOccupancyReport ro)
        {
            _reportQuery.InsertRO(ro);
        }

        public IEnumerable<RoomGuestReport> GetAllRGR(int roomNum)
        {
            return _reportQuery.GetAllRGR(roomNum);
        }

        public IEnumerable<GuestReport> GetAllGR()
        {
            return _reportQuery.GetAllGR();
        }

        public IEnumerable<Invoice> GetInvoicebyID(string invoiceID)
        {
            return _reportQuery.GetInvoicebyID(invoiceID);
        }

        public IEnumerable<Item> GetAllItem(string invoiceID)
        {
            return _reportQuery.GetAllItem(invoiceID);
        }


    }
}
